package com.cloud.api.user.repository;

import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;

import com.cloud.model.PlayUserClient;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public abstract interface PlayUserClientESRepository extends ReactiveCrudRepository<PlayUserClient, String> {

	public Mono<PlayUserClient> findByUsername(String username);

	public Mono<Integer> countByUsername(String username);

	public Flux<PlayUserClient> findByDatastatus(boolean datastatus, String orgi, Pageable paramPageable);

	public Flux<PlayUserClient> findByDatastatusAndUsername(boolean datastatus, String orgi, String username,
			Pageable paramPageable);
}
